// #include "Task.hpp"
#include "ThreadPool.hpp"


int main()
{
    ThreadPool<Task> tp;
    tp.start();

    while (1)
    {
        int data1 = rand() % 11 + 1;
        int data2 = rand() % 3;
        char op = oper[rand() % 5];

        Task task(data1, data2, op);

        tp.push(task);
        cout << "生产了一个任务" << task.GetQuestion() << endl;
        sleep(1);
    }

    return 0;
}